var path = require('path')
var serverConfig = {
    target: 'electron-main',
    entry: './index.js',
    output: {
        path: path.resolve(__dirname, 'dist'),
        filename: 'main.js'
    },
    node: {
        fs: 'empty'
    }
}

var clientConfig = {
    target: 'electron-renderer',
    entry: './render.js',
    output: {
        path: path.resolve(__dirname, 'dist'),
        filename: 'renderer.js'
    },
    node: {
        fs: 'empty'
    }
}

module.exports = [serverConfig, clientConfig]
